package com.ruoyi.eqmonitor.version.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.core.web.domain.BaseEntity;
import com.ruoyi.system.api.domain.SysFile;

/**
 * @author breeze
 * @date 2023-06-21
 */
public class BizAppVersion extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/** 主键 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	/** 文件名称 */
	@Excel(name = "文件名称")
	private String name;

	/** apk文件外键 */
	@Excel(name = "apk文件外键")
	private String fileid;

	@TableField(exist = false)
	private SysFile file;

	/** apk版本号 */
	@Excel(name = "apk版本号")
	private String version;

	/** apk版本数字码 */
	@Excel(name = "apk版本数字码")
	private Long versionCode;

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setFileid(String fileid) {
		this.fileid = fileid;
	}

	public String getFileid() {
		return fileid;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getVersion() {
		return version;
	}

	public void setVersionCode(Long versionCode) {
		this.versionCode = versionCode;
	}

	public Long getVersionCode() {
		return versionCode;
	}

	public SysFile getFile() {
		return file;
	}

	public void setFile(SysFile file) {
		this.file = file;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("name", getName())
				.append("fileid", getFileid()).append("version", getVersion()).append("versionCode", getVersionCode())
				.append("createBy", getCreateBy()).append("updateBy", getUpdateBy())
				.append("createTime", getCreateTime()).append("updateTime", getUpdateTime())
				.append("remark", getRemark()).toString();
	}
}